public class PingServer
{	public static final int PING_P = 7879;

	public static void main (String[] args)
	throws Exception
	{	Address localAddress = new Address ("127.0.0.1", PING_P, 0);
		PostOffice pobox = new PostOffice (localAddress);
		Address echoAddress = 
			new Address ("127.0.0.1", EchoServer.ECHO_P, 1);
		Message m = new Message ("hello");

		while (true)
		{	pobox.send (m, echoAddress);
			m = pobox.receive ();
			System.out.println (m.getMsg ());
		}
	} // main
} 
